import sqlite3

try:
    conn = sqlite3.connect('database/eqsystem.db')
    cursor = conn.cursor()
    cursor.execute('PRAGMA table_info(followups)')
    columns = cursor.fetchall()
    print('followups表结构:')
    has_followup_time = False
    for col in columns:
        print(f'  {col[1]} - {col[2]}')
        if col[1] == 'followup_time':
            has_followup_time = True
    
    if not has_followup_time:
        print('\n错误: followups表中缺少followup_time列!')
        print('需要添加followup_time列到followups表')
    else:
        print('\nfollowup_time列存在')
    
    conn.close()
except Exception as e:
    print(f'错误: {e}')